import {
	get,
	post
} from '../request.js'

/**
 * 分页获取商品列表
 */
export const getProdutList = (params) => post('/product/extern/page', params)


/**
 * 获取商品详情
 */
export const getProductById = (id) => get('/product/selectById', {
	id
})

/**
 * 兑换商品
 */
export const buyProduct = (id, num) => get('/product/buy', {
	id,
	num
})